package system.data;

import java.util.*;

import framework.core.*;
/*
	Author    :Arrow
	CreateTime:2009-01-05 10:28:05
*/
public class WorldExpBase extends Table 
{
public static final String TABLE_NAME = "T_WORLD_EXP";

private static final String BACKUP_TABLE_NAME = "T_WORLD_EXP_BACKUP";

private static final String BACKUP_SEQ_NAME = "S_WORLD_EXP_BACKUP";


public static final String ID = "ID";

public static final String BILL_TYPE_CODE = "BILL_TYPE_CODE";

public static final String BILL_TYPE = "BILL_TYPE";

public static final String MATERIAL_CODE = "MATERIAL_CODE";

public static final String BALANCE_CODE = "BALANCE_CODE";

public static final String WAREHOUSE_CODE = "WAREHOUSE_CODE";

public static final String WAREHOUSE_NAME = "WAREHOUSE_NAME";

public static final String BUS_CODE = "BUS_CODE";

public static final String BUS_TYPE = "BUS_TYPE";

public static final String PZ_CODE = "PZ_CODE";

public static final String IN_DATE = "IN_DATE";

public static final String OUT_DATE = "OUT_DATE";

public static final String LINE = "LINE";

public static final String CHECK_PERSON = "CHECK_PERSON";

public static final String BALANCE_PERSON = "BALANCE_PERSON";

public static final String KILO = "KILO";

public static final String GS_PRICE = "GS_PRICE";

public static final String MATERIAL_PRICE = "MATERIAL_PRICE";

public static final String WJG_PRICE = "WJG_PRICE";

public static final String UPLOAD_PERSON_ID = "UPLOAD_PERSON_ID";

public static final String UPLOAD_PERSON = "UPLOAD_PERSON";

public static final String UPLOAD_TIME = "UPLOAD_TIME";

public static final String FILE_NAME = "FILE_NAME";

public static final String FILE_PATH = "FILE_PATH";


public static Vector m_fields = null;


private String m_id = ""; //编号

private String m_bill_type_code = ""; //单据类型代号

private String m_bill_type = ""; //单据类型

private String m_material_code = ""; //维修材料清单号

private String m_balance_code = ""; //结算单编号

private String m_warehouse_code = ""; //公司编号

private String m_warehouse_name = ""; //公司名称

private String m_bus_code = ""; //车辆自编号

private String m_bus_type = ""; //车型

private String m_pz_code = ""; //牌照号码

private String m_in_date = ""; //进厂日期

private String m_out_date = ""; //出厂日期

private String m_line = ""; //线路

private String m_check_person = ""; //质量检验员

private String m_balance_person = ""; //结算员

private double m_kilo = Value.NULL_DOUBLE; //出厂公里数

private double m_gs_price = Value.NULL_DOUBLE; //工时费

private double m_material_price = Value.NULL_DOUBLE; //材料费

private double m_wjg_price = Value.NULL_DOUBLE; //外加工费

private String m_upload_person_id = ""; //上传人帐号ID

private String m_upload_person = ""; //上传人账号

private String m_upload_time = ""; //上传时间

private String m_file_name = ""; //文件名

private String m_file_path = ""; //文件路径



	public String getId()
	{
	    return m_id;
	}
	public void  setId(String v)
	{
		if(getId().equals(v)) return ;
		m_id = v ;
		markDirty(ID);
	}



	

	public String getBillTypeCode()
	{
	    return m_bill_type_code;
	}
	public void  setBillTypeCode(String v)
	{
		if(getBillTypeCode().equals(v)) return ;
		m_bill_type_code = v ;
		markDirty(BILL_TYPE_CODE);
	}



	

	public String getBillType()
	{
	    return m_bill_type;
	}
	public void  setBillType(String v)
	{
		if(getBillType().equals(v)) return ;
		m_bill_type = v ;
		markDirty(BILL_TYPE);
	}



	

	public String getMaterialCode()
	{
	    return m_material_code;
	}
	public void  setMaterialCode(String v)
	{
		if(getMaterialCode().equals(v)) return ;
		m_material_code = v ;
		markDirty(MATERIAL_CODE);
	}



	

	public String getBalanceCode()
	{
	    return m_balance_code;
	}
	public void  setBalanceCode(String v)
	{
		if(getBalanceCode().equals(v)) return ;
		m_balance_code = v ;
		markDirty(BALANCE_CODE);
	}



	

	public String getWarehouseCode()
	{
	    return m_warehouse_code;
	}
	public void  setWarehouseCode(String v)
	{
		if(getWarehouseCode().equals(v)) return ;
		m_warehouse_code = v ;
		markDirty(WAREHOUSE_CODE);
	}



	

	public String getWarehouseName()
	{
	    return m_warehouse_name;
	}
	public void  setWarehouseName(String v)
	{
		if(getWarehouseName().equals(v)) return ;
		m_warehouse_name = v ;
		markDirty(WAREHOUSE_NAME);
	}



	

	public String getBusCode()
	{
	    return m_bus_code;
	}
	public void  setBusCode(String v)
	{
		if(getBusCode().equals(v)) return ;
		m_bus_code = v ;
		markDirty(BUS_CODE);
	}



	

	public String getBusType()
	{
	    return m_bus_type;
	}
	public void  setBusType(String v)
	{
		if(getBusType().equals(v)) return ;
		m_bus_type = v ;
		markDirty(BUS_TYPE);
	}



	

	public String getPzCode()
	{
	    return m_pz_code;
	}
	public void  setPzCode(String v)
	{
		if(getPzCode().equals(v)) return ;
		m_pz_code = v ;
		markDirty(PZ_CODE);
	}



	

	public String getInDate()
	{
	    return m_in_date;
	}
	public void  setInDate(String v)
	{
		if(getInDate().equals(v)) return ;
		m_in_date = v ;
		markDirty(IN_DATE);
	}



	

	public String getOutDate()
	{
	    return m_out_date;
	}
	public void  setOutDate(String v)
	{
		if(getOutDate().equals(v)) return ;
		m_out_date = v ;
		markDirty(OUT_DATE);
	}



	

	public String getLine()
	{
	    return m_line;
	}
	public void  setLine(String v)
	{
		if(getLine().equals(v)) return ;
		m_line = v ;
		markDirty(LINE);
	}



	

	public String getCheckPerson()
	{
	    return m_check_person;
	}
	public void  setCheckPerson(String v)
	{
		if(getCheckPerson().equals(v)) return ;
		m_check_person = v ;
		markDirty(CHECK_PERSON);
	}



	

	public String getBalancePerson()
	{
	    return m_balance_person;
	}
	public void  setBalancePerson(String v)
	{
		if(getBalancePerson().equals(v)) return ;
		m_balance_person = v ;
		markDirty(BALANCE_PERSON);
	}



	

	public double getKilo()
	{
	    return m_kilo;
	}
	public void  setKilo(double v)
	{
		if(getKilo()==v) return ;
		m_kilo = v ;
		markDirty(KILO);
	}



	

	public double getGsPrice()
	{
	    return m_gs_price;
	}
	public void  setGsPrice(double v)
	{
		if(getGsPrice()==v) return ;
		m_gs_price = v ;
		markDirty(GS_PRICE);
	}



	

	public double getMaterialPrice()
	{
	    return m_material_price;
	}
	public void  setMaterialPrice(double v)
	{
		if(getMaterialPrice()==v) return ;
		m_material_price = v ;
		markDirty(MATERIAL_PRICE);
	}



	

	public double getWjgPrice()
	{
	    return m_wjg_price;
	}
	public void  setWjgPrice(double v)
	{
		if(getWjgPrice()==v) return ;
		m_wjg_price = v ;
		markDirty(WJG_PRICE);
	}



	

	public String getUploadPersonId()
	{
	    return m_upload_person_id;
	}
	public void  setUploadPersonId(String v)
	{
		if(getUploadPersonId().equals(v)) return ;
		m_upload_person_id = v ;
		markDirty(UPLOAD_PERSON_ID);
	}



	

	public String getUploadPerson()
	{
	    return m_upload_person;
	}
	public void  setUploadPerson(String v)
	{
		if(getUploadPerson().equals(v)) return ;
		m_upload_person = v ;
		markDirty(UPLOAD_PERSON);
	}



	

	public String getUploadTime()
	{
	    return m_upload_time;
	}
	public void  setUploadTime(String v)
	{
		if(getUploadTime().equals(v)) return ;
		m_upload_time = v ;
		markDirty(UPLOAD_TIME);
	}



	

	public String getFileName()
	{
	    return m_file_name;
	}
	public void  setFileName(String v)
	{
		if(getFileName().equals(v)) return ;
		m_file_name = v ;
		markDirty(FILE_NAME);
	}



	

	public String getFilePath()
	{
	    return m_file_path;
	}
	public void  setFilePath(String v)
	{
		if(getFilePath().equals(v)) return ;
		m_file_path = v ;
		markDirty(FILE_PATH);
	}



	



	public String viewId(DBConnection con) throws Exception
	{
		return Value.view(getId());
	}

	public String viewBillTypeCode(DBConnection con) throws Exception
	{
		return Value.view(getBillTypeCode());
	}

	public String viewBillType(DBConnection con) throws Exception
	{
		return Value.view(getBillType());
	}

	public String viewMaterialCode(DBConnection con) throws Exception
	{
		return Value.view(getMaterialCode());
	}

	public String viewBalanceCode(DBConnection con) throws Exception
	{
		return Value.view(getBalanceCode());
	}

	public String viewWarehouseCode(DBConnection con) throws Exception
	{
		return Value.view(getWarehouseCode());
	}

	public String viewWarehouseName(DBConnection con) throws Exception
	{
		return Value.view(getWarehouseName());
	}

	public String viewBusCode(DBConnection con) throws Exception
	{
		return Value.view(getBusCode());
	}

	public String viewBusType(DBConnection con) throws Exception
	{
		return Value.view(getBusType());
	}

	public String viewPzCode(DBConnection con) throws Exception
	{
		return Value.view(getPzCode());
	}

	public String viewInDate(DBConnection con) throws Exception
	{
		return Value.view(getInDate());
	}

	public String viewOutDate(DBConnection con) throws Exception
	{
		return Value.view(getOutDate());
	}

	public String viewLine(DBConnection con) throws Exception
	{
		return Value.view(getLine());
	}

	public String viewCheckPerson(DBConnection con) throws Exception
	{
		return Value.view(getCheckPerson());
	}

	public String viewBalancePerson(DBConnection con) throws Exception
	{
		return Value.view(getBalancePerson());
	}

	public String viewKilo(DBConnection con) throws Exception
	{
		return Value.view(getKilo());
	}

	public String viewGsPrice(DBConnection con) throws Exception
	{
		return Value.view(getGsPrice());
	}

	public String viewMaterialPrice(DBConnection con) throws Exception
	{
		return Value.view(getMaterialPrice());
	}

	public String viewWjgPrice(DBConnection con) throws Exception
	{
		return Value.view(getWjgPrice());
	}

	public String viewUploadPersonId(DBConnection con) throws Exception
	{
		return Value.view(getUploadPersonId());
	}

	public String viewUploadPerson(DBConnection con) throws Exception
	{
		return Value.view(getUploadPerson());
	}

	public String viewUploadTime(DBConnection con) throws Exception
	{
		return Value.view(getUploadTime());
	}

	public String viewFileName(DBConnection con) throws Exception
	{
		return Value.view(getFileName());
	}

	public String viewFilePath(DBConnection con) throws Exception
	{
		return Value.view(getFilePath());
	}



protected WorldExpBase()
{
}

public void fill(WorldExpPageData pageData) throws Exception
{

	if(pageData.getId()!=null)
	{	
		setId(pageData.getId());
	}

	if(pageData.getBillTypeCode()!=null)
	{	
		setBillTypeCode(pageData.getBillTypeCode());
	}

	if(pageData.getBillType()!=null)
	{	
		setBillType(pageData.getBillType());
	}

	if(pageData.getMaterialCode()!=null)
	{	
		setMaterialCode(pageData.getMaterialCode());
	}

	if(pageData.getBalanceCode()!=null)
	{	
		setBalanceCode(pageData.getBalanceCode());
	}

	if(pageData.getWarehouseCode()!=null)
	{	
		setWarehouseCode(pageData.getWarehouseCode());
	}

	if(pageData.getWarehouseName()!=null)
	{	
		setWarehouseName(pageData.getWarehouseName());
	}

	if(pageData.getBusCode()!=null)
	{	
		setBusCode(pageData.getBusCode());
	}

	if(pageData.getBusType()!=null)
	{	
		setBusType(pageData.getBusType());
	}

	if(pageData.getPzCode()!=null)
	{	
		setPzCode(pageData.getPzCode());
	}

	if(pageData.getInDate()!=null)
	{	
		setInDate(pageData.getInDate());
	}

	if(pageData.getOutDate()!=null)
	{	
		setOutDate(pageData.getOutDate());
	}

	if(pageData.getLine()!=null)
	{	
		setLine(pageData.getLine());
	}

	if(pageData.getCheckPerson()!=null)
	{	
		setCheckPerson(pageData.getCheckPerson());
	}

	if(pageData.getBalancePerson()!=null)
	{	
		setBalancePerson(pageData.getBalancePerson());
	}

	if( pageData.getKilo()!=null && 
	   !pageData.getKilo().equals(""))
	{	
		setKilo(Double.parseDouble(pageData.getKilo()));
	}

	if( pageData.getGsPrice()!=null && 
	   !pageData.getGsPrice().equals(""))
	{	
		setGsPrice(Double.parseDouble(pageData.getGsPrice()));
	}

	if( pageData.getMaterialPrice()!=null && 
	   !pageData.getMaterialPrice().equals(""))
	{	
		setMaterialPrice(Double.parseDouble(pageData.getMaterialPrice()));
	}

	if( pageData.getWjgPrice()!=null && 
	   !pageData.getWjgPrice().equals(""))
	{	
		setWjgPrice(Double.parseDouble(pageData.getWjgPrice()));
	}

	if(pageData.getUploadPersonId()!=null)
	{	
		setUploadPersonId(pageData.getUploadPersonId());
	}

	if(pageData.getUploadPerson()!=null)
	{	
		setUploadPerson(pageData.getUploadPerson());
	}

	if(pageData.getUploadTime()!=null)
	{	
		setUploadTime(pageData.getUploadTime());
	}

	if(pageData.getFileName()!=null)
	{	
		setFileName(pageData.getFileName());
	}

	if(pageData.getFilePath()!=null)
	{	
		setFilePath(pageData.getFilePath());
	}

}

public String getTableName() 
{
	return TABLE_NAME;
}

public String getBackupTableName() 
{
	return BACKUP_TABLE_NAME;
}

public String getBackupSeqName() 
{
	return BACKUP_SEQ_NAME;
}

public java.util.Vector getFields() 
{
	if(m_fields==null)
	{
		m_fields = new Vector();

		m_fields.add(new Field(ID,Value.TYPE_STRING,true,true,32,"编号"));

		m_fields.add(new Field(BILL_TYPE_CODE,Value.TYPE_STRING,false,true,10,"单据类型代号"));

		m_fields.add(new Field(BILL_TYPE,Value.TYPE_STRING,false,true,20,"单据类型"));

		m_fields.add(new Field(MATERIAL_CODE,Value.TYPE_STRING,false,false,100,"维修材料清单号"));

		m_fields.add(new Field(BALANCE_CODE,Value.TYPE_STRING,false,false,100,"结算单编号"));

		m_fields.add(new Field(WAREHOUSE_CODE,Value.TYPE_STRING,false,true,10,"公司编号"));

		m_fields.add(new Field(WAREHOUSE_NAME,Value.TYPE_STRING,false,true,20,"公司名称"));

		m_fields.add(new Field(BUS_CODE,Value.TYPE_STRING,false,false,100,"车辆自编号"));

		m_fields.add(new Field(BUS_TYPE,Value.TYPE_STRING,false,false,100,"车型"));

		m_fields.add(new Field(PZ_CODE,Value.TYPE_STRING,false,false,100,"牌照号码"));

		m_fields.add(new Field(IN_DATE,Value.TYPE_STRING,false,false,20,"进厂日期"));

		m_fields.add(new Field(OUT_DATE,Value.TYPE_STRING,false,false,20,"出厂日期"));

		m_fields.add(new Field(LINE,Value.TYPE_STRING,false,false,100,"线路"));

		m_fields.add(new Field(CHECK_PERSON,Value.TYPE_STRING,false,false,100,"质量检验员"));

		m_fields.add(new Field(BALANCE_PERSON,Value.TYPE_STRING,false,false,100,"结算员"));

		m_fields.add(new Field(KILO,Value.TYPE_DOUBLE,false,false,0,"出厂公里数"));

		m_fields.add(new Field(GS_PRICE,Value.TYPE_DOUBLE,false,false,0,"工时费"));

		m_fields.add(new Field(MATERIAL_PRICE,Value.TYPE_DOUBLE,false,false,0,"材料费"));

		m_fields.add(new Field(WJG_PRICE,Value.TYPE_DOUBLE,false,false,0,"外加工费"));

		m_fields.add(new Field(UPLOAD_PERSON_ID,Value.TYPE_STRING,false,true,32,"上传人帐号ID"));

		m_fields.add(new Field(UPLOAD_PERSON,Value.TYPE_STRING,false,true,50,"上传人账号"));

		m_fields.add(new Field(UPLOAD_TIME,Value.TYPE_STRING,false,true,20,"上传时间"));

		m_fields.add(new Field(FILE_NAME,Value.TYPE_STRING,false,true,200,"文件名"));

		m_fields.add(new Field(FILE_PATH,Value.TYPE_STRING,false,true,400,"文件路径"));
		
	}
	return m_fields;
}

public void initObject(java.sql.ResultSet rs) throws Exception
{

	m_id = getString(rs,ID);

	m_bill_type_code = getString(rs,BILL_TYPE_CODE);

	m_bill_type = getString(rs,BILL_TYPE);

	m_material_code = getString(rs,MATERIAL_CODE);

	m_balance_code = getString(rs,BALANCE_CODE);

	m_warehouse_code = getString(rs,WAREHOUSE_CODE);

	m_warehouse_name = getString(rs,WAREHOUSE_NAME);

	m_bus_code = getString(rs,BUS_CODE);

	m_bus_type = getString(rs,BUS_TYPE);

	m_pz_code = getString(rs,PZ_CODE);

	m_in_date = getString(rs,IN_DATE);

	m_out_date = getString(rs,OUT_DATE);

	m_line = getString(rs,LINE);

	m_check_person = getString(rs,CHECK_PERSON);

	m_balance_person = getString(rs,BALANCE_PERSON);

	m_kilo = getDouble(rs,KILO);

	m_gs_price = getDouble(rs,GS_PRICE);

	m_material_price = getDouble(rs,MATERIAL_PRICE);

	m_wjg_price = getDouble(rs,WJG_PRICE);

	m_upload_person_id = getString(rs,UPLOAD_PERSON_ID);

	m_upload_person = getString(rs,UPLOAD_PERSON);

	m_upload_time = getString(rs,UPLOAD_TIME);

	m_file_name = getString(rs,FILE_NAME);

	m_file_path = getString(rs,FILE_PATH);

	ms_new_flag = ConstDefine.NO;
}

public Value get(String f)
{

	if(f.equalsIgnoreCase(ID))
	{
		return new Value(getId());
	}

	if(f.equalsIgnoreCase(BILL_TYPE_CODE))
	{
		return new Value(getBillTypeCode());
	}

	if(f.equalsIgnoreCase(BILL_TYPE))
	{
		return new Value(getBillType());
	}

	if(f.equalsIgnoreCase(MATERIAL_CODE))
	{
		return new Value(getMaterialCode());
	}

	if(f.equalsIgnoreCase(BALANCE_CODE))
	{
		return new Value(getBalanceCode());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_CODE))
	{
		return new Value(getWarehouseCode());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_NAME))
	{
		return new Value(getWarehouseName());
	}

	if(f.equalsIgnoreCase(BUS_CODE))
	{
		return new Value(getBusCode());
	}

	if(f.equalsIgnoreCase(BUS_TYPE))
	{
		return new Value(getBusType());
	}

	if(f.equalsIgnoreCase(PZ_CODE))
	{
		return new Value(getPzCode());
	}

	if(f.equalsIgnoreCase(IN_DATE))
	{
		return new Value(getInDate());
	}

	if(f.equalsIgnoreCase(OUT_DATE))
	{
		return new Value(getOutDate());
	}

	if(f.equalsIgnoreCase(LINE))
	{
		return new Value(getLine());
	}

	if(f.equalsIgnoreCase(CHECK_PERSON))
	{
		return new Value(getCheckPerson());
	}

	if(f.equalsIgnoreCase(BALANCE_PERSON))
	{
		return new Value(getBalancePerson());
	}

	if(f.equalsIgnoreCase(KILO))
	{
		return new Value(getKilo());
	}

	if(f.equalsIgnoreCase(GS_PRICE))
	{
		return new Value(getGsPrice());
	}

	if(f.equalsIgnoreCase(MATERIAL_PRICE))
	{
		return new Value(getMaterialPrice());
	}

	if(f.equalsIgnoreCase(WJG_PRICE))
	{
		return new Value(getWjgPrice());
	}

	if(f.equalsIgnoreCase(UPLOAD_PERSON_ID))
	{
		return new Value(getUploadPersonId());
	}

	if(f.equalsIgnoreCase(UPLOAD_PERSON))
	{
		return new Value(getUploadPerson());
	}

	if(f.equalsIgnoreCase(UPLOAD_TIME))
	{
		return new Value(getUploadTime());
	}

	if(f.equalsIgnoreCase(FILE_NAME))
	{
		return new Value(getFileName());
	}

	if(f.equalsIgnoreCase(FILE_PATH))
	{
		return new Value(getFilePath());
	}
	
	return null;
}
public void set(String f,Value v) throws Exception
{

	if(f.equalsIgnoreCase(ID))
	{
		setId(v.getString());
	}

	if(f.equalsIgnoreCase(BILL_TYPE_CODE))
	{
		setBillTypeCode(v.getString());
	}

	if(f.equalsIgnoreCase(BILL_TYPE))
	{
		setBillType(v.getString());
	}

	if(f.equalsIgnoreCase(MATERIAL_CODE))
	{
		setMaterialCode(v.getString());
	}

	if(f.equalsIgnoreCase(BALANCE_CODE))
	{
		setBalanceCode(v.getString());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_CODE))
	{
		setWarehouseCode(v.getString());
	}

	if(f.equalsIgnoreCase(WAREHOUSE_NAME))
	{
		setWarehouseName(v.getString());
	}

	if(f.equalsIgnoreCase(BUS_CODE))
	{
		setBusCode(v.getString());
	}

	if(f.equalsIgnoreCase(BUS_TYPE))
	{
		setBusType(v.getString());
	}

	if(f.equalsIgnoreCase(PZ_CODE))
	{
		setPzCode(v.getString());
	}

	if(f.equalsIgnoreCase(IN_DATE))
	{
		setInDate(v.getString());
	}

	if(f.equalsIgnoreCase(OUT_DATE))
	{
		setOutDate(v.getString());
	}

	if(f.equalsIgnoreCase(LINE))
	{
		setLine(v.getString());
	}

	if(f.equalsIgnoreCase(CHECK_PERSON))
	{
		setCheckPerson(v.getString());
	}

	if(f.equalsIgnoreCase(BALANCE_PERSON))
	{
		setBalancePerson(v.getString());
	}

	if(f.equalsIgnoreCase(KILO))
	{
		setKilo(v.getDouble());
	}

	if(f.equalsIgnoreCase(GS_PRICE))
	{
		setGsPrice(v.getDouble());
	}

	if(f.equalsIgnoreCase(MATERIAL_PRICE))
	{
		setMaterialPrice(v.getDouble());
	}

	if(f.equalsIgnoreCase(WJG_PRICE))
	{
		setWjgPrice(v.getDouble());
	}

	if(f.equalsIgnoreCase(UPLOAD_PERSON_ID))
	{
		setUploadPersonId(v.getString());
	}

	if(f.equalsIgnoreCase(UPLOAD_PERSON))
	{
		setUploadPerson(v.getString());
	}

	if(f.equalsIgnoreCase(UPLOAD_TIME))
	{
		setUploadTime(v.getString());
	}

	if(f.equalsIgnoreCase(FILE_NAME))
	{
		setFileName(v.getString());
	}

	if(f.equalsIgnoreCase(FILE_PATH))
	{
		setFilePath(v.getString());
	}
	
}
public String toString()
{
	String msg = "WorldExp=\n";
	msg += "(\r\n";

	msg += "    编号(id)="+get("id")+"\r\n";

	msg += "    单据类型代号(bill_type_code)="+get("bill_type_code")+"\r\n";

	msg += "    单据类型(bill_type)="+get("bill_type")+"\r\n";

	msg += "    维修材料清单号(material_code)="+get("material_code")+"\r\n";

	msg += "    结算单编号(balance_code)="+get("balance_code")+"\r\n";

	msg += "    公司编号(warehouse_code)="+get("warehouse_code")+"\r\n";

	msg += "    公司名称(warehouse_name)="+get("warehouse_name")+"\r\n";

	msg += "    车辆自编号(bus_code)="+get("bus_code")+"\r\n";

	msg += "    车型(bus_type)="+get("bus_type")+"\r\n";

	msg += "    牌照号码(pz_code)="+get("pz_code")+"\r\n";

	msg += "    进厂日期(in_date)="+get("in_date")+"\r\n";

	msg += "    出厂日期(out_date)="+get("out_date")+"\r\n";

	msg += "    线路(line)="+get("line")+"\r\n";

	msg += "    质量检验员(check_person)="+get("check_person")+"\r\n";

	msg += "    结算员(balance_person)="+get("balance_person")+"\r\n";

	msg += "    出厂公里数(kilo)="+get("kilo")+"\r\n";

	msg += "    工时费(gs_price)="+get("gs_price")+"\r\n";

	msg += "    材料费(material_price)="+get("material_price")+"\r\n";

	msg += "    外加工费(wjg_price)="+get("wjg_price")+"\r\n";

	msg += "    上传人帐号ID(upload_person_id)="+get("upload_person_id")+"\r\n";

	msg += "    上传人账号(upload_person)="+get("upload_person")+"\r\n";

	msg += "    上传时间(upload_time)="+get("upload_time")+"\r\n";

	msg += "    文件名(file_name)="+get("file_name")+"\r\n";

	msg += "    文件路径(file_path)="+get("file_path")+"\r\n";
		
	msg += ")\r\n";
	return msg;
}
public void copyBase(WorldExpBase srcObj)
{

	setBillTypeCode(srcObj.getBillTypeCode());

	setBillType(srcObj.getBillType());

	setMaterialCode(srcObj.getMaterialCode());

	setBalanceCode(srcObj.getBalanceCode());

	setWarehouseCode(srcObj.getWarehouseCode());

	setWarehouseName(srcObj.getWarehouseName());

	setBusCode(srcObj.getBusCode());

	setBusType(srcObj.getBusType());

	setPzCode(srcObj.getPzCode());

	setInDate(srcObj.getInDate());

	setOutDate(srcObj.getOutDate());

	setLine(srcObj.getLine());

	setCheckPerson(srcObj.getCheckPerson());

	setBalancePerson(srcObj.getBalancePerson());

	setKilo(srcObj.getKilo());

	setGsPrice(srcObj.getGsPrice());

	setMaterialPrice(srcObj.getMaterialPrice());

	setWjgPrice(srcObj.getWjgPrice());

	setUploadPersonId(srcObj.getUploadPersonId());

	setUploadPerson(srcObj.getUploadPerson());

	setUploadTime(srcObj.getUploadTime());

	setFileName(srcObj.getFileName());

	setFilePath(srcObj.getFilePath());

}

public String toXml() throws Exception
{
	String xml = "";
	xml += "<WorldExp>";

	xml += "<Id>"+Value.view(getId())+"</Id>";

	xml += "<BillTypeCode>"+Value.view(getBillTypeCode())+"</BillTypeCode>";

	xml += "<BillType>"+Value.view(getBillType())+"</BillType>";

	xml += "<MaterialCode>"+Value.view(getMaterialCode())+"</MaterialCode>";

	xml += "<BalanceCode>"+Value.view(getBalanceCode())+"</BalanceCode>";

	xml += "<WarehouseCode>"+Value.view(getWarehouseCode())+"</WarehouseCode>";

	xml += "<WarehouseName>"+Value.view(getWarehouseName())+"</WarehouseName>";

	xml += "<BusCode>"+Value.view(getBusCode())+"</BusCode>";

	xml += "<BusType>"+Value.view(getBusType())+"</BusType>";

	xml += "<PzCode>"+Value.view(getPzCode())+"</PzCode>";

	xml += "<InDate>"+Value.view(getInDate())+"</InDate>";

	xml += "<OutDate>"+Value.view(getOutDate())+"</OutDate>";

	xml += "<Line>"+Value.view(getLine())+"</Line>";

	xml += "<CheckPerson>"+Value.view(getCheckPerson())+"</CheckPerson>";

	xml += "<BalancePerson>"+Value.view(getBalancePerson())+"</BalancePerson>";

	xml += "<Kilo>"+Value.view(getKilo())+"</Kilo>";

	xml += "<GsPrice>"+Value.view(getGsPrice())+"</GsPrice>";

	xml += "<MaterialPrice>"+Value.view(getMaterialPrice())+"</MaterialPrice>";

	xml += "<WjgPrice>"+Value.view(getWjgPrice())+"</WjgPrice>";

	xml += "<UploadPersonId>"+Value.view(getUploadPersonId())+"</UploadPersonId>";

	xml += "<UploadPerson>"+Value.view(getUploadPerson())+"</UploadPerson>";

	xml += "<UploadTime>"+Value.view(getUploadTime())+"</UploadTime>";

	xml += "<FileName>"+Value.view(getFileName())+"</FileName>";

	xml += "<FilePath>"+Value.view(getFilePath())+"</FilePath>";
	
	xml += "</WorldExp>";
	return xml;
}

}
